<?php

namespace app\modules\order\controllers;

use Yii;
use yii\web\Controller;
use common\models\Tools;
use common\models\Order;

/**
 * 支付回调
 */
class PaybackController extends Controller
{
    public $enableCsrfValidation = false;
    /***
     * 创建订单
     */
    public function actionIndex(){
        $order_no = Tools::GetSafeParam('order_no', '', 1);
        $pay_no = Tools::GetSafeParam('pay_no', '', 1);
        //1594436793249689
        $result = Order::paybackDeal($order_no,$pay_no);
        echo $result;
        exit;
    }
}
